package com.five.monkey.enums;

/**
 * @author 狻猊
 * @date 2021/8/9 下午5:11
 */
public enum StatusEnum {

    valid(0, "有效"),

    invalid(1, "无效");

    private Integer status;

    private String desc;

    StatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public Integer getStatus() {
        return this.status;
    }

    public static boolean isValid(Integer status) {
        return valid.getStatus().equals(status);
    }

    public static boolean isInvalid(Integer status) {
        return invalid.getStatus().equals(status);
    }
}
